package com.avilyne.rest.model;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlRootElement;

@SuppressWarnings("serial")
@XmlRootElement
public class Store extends ObjectStore{
	private int id = -1;
	private String name = "";
	private String image = "";
	private String desc = "";
	private ArrayList<Book> books;
	
	public Store() {
		id = -1;
		name = "";
		books = new ArrayList<Book>();
	}
	
	
	
	public Store(int id,String name,String image, ArrayList<Book> books) {
		super();
		this.id = id;
		this.books = books;
		this.name = name;
		this.image = image;
	}



	public static Store createDataSample(){
		Store cat = new Store();
		for(int i=0;i<3;i++){
			Book book = Book.createDataSample();
			cat.books.add(book);
		}
		cat.name = "Mới";
		return cat;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ArrayList<Book> getBooks() {
		return books;
	}

	public void setBooks(ArrayList<Book> books) {
		this.books = books;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getImage() {
		return image;
	}
	
	public void setImage(String image) {
		this.image = image;
	}
	
	public String getDesc() {
		return desc;
	}
	
	public void setDesc(String desc) {
		this.desc = desc;
	}
}
